home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / WINDTIES / MAGIC110.LZH / TECHSTUF.DOC < prev   
Text File  |  1990-08-30  |  2KB  |  46 lines

  1.  
  2. Version 1.10 - August 26, 1990
  3.  
  4. (c) Bill Stewart & Ian MacDonald
  5. Dynamic Information Systems - Calgary, Alberta
  6.  
  7.  
  8. How Does Magic Work?
  9.  
  10. When Magic starts up, it tries to retrieve the default control panel
  11. settings from the WIN.INI file.  If it can't find them, it creates a new
  12. default set.  Magic then installs a 'Journal Hook' (using Magic's DLL) to
  13. monitor the keyboard, mouse movements and mouse location.  Then a timer is
  14. created to measure periods of inactivity, the mouse's duration in the
  15. 'Sleep Area', and the animation of the 'Nova Icon' (when active).
  16.  
  17. Conditions for sleep: 
  18.  
  19. 1)  No user activity for the specifed timeout period (default is 5 minutes),
  20.         OR
  21. 2)  Mouse is inside the boundaries of the 'Sleep Area' with no mouse
  22.     movement for approximately 1 second.  The 1 second delay period is used
  23.     to prevent Magic from going to sleep every time the mouse passes through
  24.     the 'Sleep Area'.  Note:  If a mouse button is down within the 'Sleep
  25.     Area', Sleep Mode will not be activated. 
  26.  
  27. Control is given to Magic's graphic routines only when 'null' messages are
  28. detected in the system's message queue.  Null messages are present only when
  29. all other applications are idle.  This ensures that the performance of other,
  30. properly-written Windows applications will not be affected by Magic.  In the
  31. event that other applications (running simultaneously) also use 'null'
  32. messages to control processing, each application gets its share of the 'null'
  33. messages.  
  34.  
  35. The period of the timer  is 1 second and  was chosen such that it should not
  36. interfere with the system's operation.
  37.  
  38. The Journal Hook, Timer, and Null message processing can be temporarily
  39. suspended by turning off Magic's control panel 'Power Switch'. This removes
  40. any effects that Magic might have on system performance.  Turning the
  41. 'Power Switch' back on reinstalls the Journal Hook, Timer, and Null message
  42. processing.  
  43.  
  44. Note:  Closing the control panel frees most of the memory required by Magic.
  45.  
  46.